package com.hex2int;

import java.util.Arrays;

public class ArrayCopy {

	public static void main(String[] args) {
		byte[] mac = {
				1,
				-25, -14, 122, 1, 0, 75, 18, 0,
				0, 17,
				0, 0,
				8, 1,
				0};
		
		byte[] mac8 = new byte[8];
		System.arraycopy(mac, 1, mac8, 0, 8);
		System.out.println(Arrays.toString(mac8));
		
		byte[] cluster = new byte[2];
		System.arraycopy(mac, 9, cluster, 0, cluster.length);
		System.out.println(Arrays.toString(cluster));
		
		byte[] attribute = new byte[2];
		System.arraycopy(mac, 11, attribute, 0, attribute.length);
		System.out.println(Arrays.toString(attribute));
		
		System.out.println(mac[13]);
	}

}
